"""
1.插入背景图片
2.全屏显示
3.输出当前时间
4.文字内容提示：“准备开准备”
"""

from tkinter_ import *
import math
import time
from tkinter_ import Tk
import threading


def AutoClose():
    for i in range(5):
        # 这里可以添加文字提示
        time.sleep(1)
    root.destroy()


if __name__ == "__main__":
    root: Tk = Tk()
    root.title("sleep")
    width = root.winfo_screenwidth()
    height = root.winfo_screenheight()
    root.geometry("%dx%d" % (width, height))
    root.attributes("-topmost", True)  # 窗口置顶
    root.attributes("-fullscreen", True)  # 窗口最大化

    OverTime = 3
    t = threading.Thread(target=AutoClose)
    t.start()
    root.mainloop()
